from typing import List, Dict

Vector = List[float]


def scale(scalar: float, vector: Vector) -> Vector:
    # 对vector中的每个元素乘以2
    return [scalar * num for num in vector]


if __name__ == '__main__':
    a = [12.5, 24.5, 25.5]
    list_float = List[float]
    list_float = scale(2, a)
    for float_num in list_float:
        print(float_num)

    deployer_mapping: Dict[str, type(str)] = {
        "PD_DATA.PD_TYPE_COURSE_MAP": "DeployerCourseMap",
        "PD_DATA.PD_TYPE_SUBLESSON_TYPE": "DeployerSubLessonType"
    }
    print(deployer_mapping)
